#include "node_data.h"

NodeDataBase::NodeDataBase(QWidget *parent)
    :QWidget(parent)
{
    this->layout = std::make_shared<QVBoxLayout>();
    this->layout->setContentsMargins(0,0,0,0);
    this->setLayout(this->layout.get());
}

NodeDataBase::~NodeDataBase()
{
    this->layout.reset();
}

NodeDataNumberInput::NodeDataNumberInput(QWidget *parent)
    :NodeDataBase(parent)
{
    edit->setStyleSheet("QLineEdit { background: gray; border-radius:5px;font-size:20px; }");
    edit->setAlignment(Qt::AlignRight);
}

double NodeDataNumberInput::getData()
{
    return 1;
}

NodeDataNumberInput::~NodeDataNumberInput()
{
    this->edit.reset();
}
